package com.basic.backend.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@ApiModel("分析结果视图")
public class AnalysisResultVO {
    @ApiModelProperty("分析记录ID")
    private Long analysisId;
    
    @ApiModelProperty("关联文章ID")
    private Long articleId;

    //文章字数
    @ApiModelProperty("文章字数")
    private Integer wordCount;

    //文章作者
    @ApiModelProperty("文章作者")
    private String author;
    
    @ApiModelProperty("真实性概率")
    private BigDecimal authenticityProbability;
    
    @ApiModelProperty("AI生成概率")
    private BigDecimal aiProbability;
    
    @ApiModelProperty("热词列表")
    private List<HotWord> hotWords;
    
    @ApiModelProperty("分析模型")
    private String model;
    
    @ApiModelProperty("分析时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date analyzedAt;

    @ApiModelProperty("AI分析摘要")
    private String aiAnalysisSummary;

    @ApiModelProperty("AI推理结果")
    private String aiReasoning;





    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class HotWord {
        private String word;
        private BigDecimal score;
    }
}